// pages/homepage/search/search.js

Page({
  data: {
    name:''
  },
  onLoad: function (options) {
  },
  onShareAppMessage: function () {
  },

  input: function (e) {
    this.setData({
      name: e.detail.value 
    })
  },
  formSubmit: function () {
    var that = this;
    wx.navigateTo({
      url: 'searchdetail/searchdetail?name=' + this.data.name
    })
  }

})